package com.ruoyi.core.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import lombok.Data;
import java.util.Date;



/**
 * 用户视图对象 x_user
 *
 * @author xie
 * @date 2022-08-26
 */
@Data
@ExcelIgnoreUnannotated
public class UserVo {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelProperty(value = "id")
    private Long id;
    /**
     * 部门id
     */
    @ExcelProperty(value = "部门id")
    private Long deptId;

    /**
     * 用户id
     */
    @ExcelProperty(value = "用户id")
    private Long userId;

    /**
     * appid
     */
    @ExcelProperty(value = "appid")
    private String appid;

    /**
     * 父id
     */
    @ExcelProperty(value = "父id")
    private Long pid;

    /**
     * unionid
     */
    @ExcelProperty(value = "unionid")
    private String unionid;

    /**
     * openid
     */
    @ExcelProperty(value = "openid")
    private String openid;

    /**
     * 用户类型
     */
    @ExcelProperty(value = "用户类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "usr_utype")
    private String utype;

    /**
     * 手机
     */
    @ExcelProperty(value = "手机")
    private String tel;

    /**
     * 密码
     */
    @ExcelProperty(value = "密码")
    private String password;

    /**
     * 昵称
     */
    @ExcelProperty(value = "昵称")
    private String nickname;

    /**
     * 头像
     */
    @ExcelProperty(value = "头像")
    private String avatar;

    /**
     * 性别
     */
    @ExcelProperty(value = "性别", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_user_sex")
    private String sex;

    /**
     * 城市
     */
    @ExcelProperty(value = "城市")
    private String city;

    /**
     * 地址
     */
    @ExcelProperty(value = "地址")
    private String address;

    /**
     * 积分
     */
    @ExcelProperty(value = "积分")
    private Long credits;

    /**
     * 券数
     */
    @ExcelProperty(value = "券数")
    private Long tickets;

    /**
     * 余额
     */
    @ExcelProperty(value = "余额")
    private Long balance;

    /**
     * 身份
     */
    @ExcelProperty(value = "身份")
    private String identity;

    /**
     * 最近登录
     */
    @ExcelProperty(value = "最近登录")
    private Date lastLoginTime;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
